<%-- 
    Document   : footer
    Created on : Jun 21, 2012, 1:08:08 PM
    Author     : Owner
--%>

<html>    
    <body>
        <table cellspacing="10px" align="center" width="100%" border="1">
            <tr>
                <td>
                    <ul>
                        <% Long userId = Long.parseLong(String.valueOf(session.getAttribute("loginUserId")));
                                    Long roleId = Long.parseLong(String.valueOf(session.getAttribute("loginRoleId")));
                                    if (userId > 0 && roleId == 0) {%>
                        <li><a href="./menuAction.do?action=showAdminHome" >Home</a></li>
                        <%} else {%>
                        <li><a href="./menuAction.do?action=showHomeBeforeLogin" >Home</a></li>
                        <%}%>
                        <li><a href="./menuAction.do?action=showContactUs">Contact Us</a></li>
                        <li><a href="./menuAction.do?action=showAboutUs">About Us</a></li>
                    </ul>
                </td>
                <td>
                    <ul>
                        <li><a href="./category.do?action=showCategory">Online Store</a></li>
                        <% if (userId > 0 && roleId > 0) {%>
                        <li><a href="./userAccount.do?action=logout">Logout</a></li>
                        <%} else {%>
                        <li><a href="./userAccount.do?action=showUserLogin">Login</a></li>
                        <%}%>
                        <%  if (userId > 0 && roleId > 0) {%>
                        <li><a href="./userAccount.do?action=showAccountDashboard">My Account</a></li>
                        <%} else {%>
                        <li><a href="./userAccount.do?action=showUserRegistration">Create an Account</a></li>
                        <%}%>
                    </ul>
                </td>
                <td>
                    <ul>
                        <li><a href="./menuAction.do?action=showSearchPage">Advanced Search</a></li>
                        <% if (userId > 0 && roleId > 0) {%>
                        <li><a href="./payment.do?action=showUserOrders">Order History</a></li>
                        <%} else {%>
                        <li><a href="./userAccount.do?action=showUserLogin">Order History</a></li>
                        <%}%>
                        <li><a href="./product.do?action=showCart">Shopping Cart</a></li>
                    </ul>
                </td>
                <td>
                    <table>
                        <tr><td>Share Us</td></tr>
                        <tr>
                            <td>
                                <a href="http://www.facebook.com" target="_blank"><img src="images/img-facebook.gif" alt="facebook" /></a>
                                <a href="http://www.twitter.com" target="_blank"><img src="images/img-twitter.gif" alt="twitter" /></a>
                                <a href="http://www.linked.com" target="_blank"><img src="images/img-linkedIn.gif" alt="linkedin" /></a>
                                <a href="http://www.youtube.com" target="_blank"><img src="images/img-youtube.gif" alt="youtube" /></a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
